package com.dsl.dslsuzhou.common.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class OpenApiConfig {
    @Bean
    public OpenAPI baseOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("IBMS/数据采集 API")
                        .description("后端接口文档（基于 springdoc-openapi）")
                        .version("v1.0"))
                .addServersItem(new Server().url("/"));
    }
}


